//
// Created by darcy on 4/27/21.
//

#include "../Include/Account.h"

void Account::deposit(float amount) { balance += amount; }

bool Account::withdraw(float amount) {
    if (balance >= amount) {
        balance -= amount;
        return true;
    } else
        return false;
}

float Account::getBalance() const { return balance; }

Account::Account(int ID, float Balance) {
    id = ID;
    balance = Balance;
}
